package designpatterns.template;

/**
 * @author 真香
 * @create 2022-11-27 21:59
 *  模版模式
 *
 */
public class test {

    public static void main(String[] args){

        System.out.println("小企鹅");
        littlePenguin littlePenguin =new littlePenguin();
        littlePenguin.everyDay();

        System.out.println("中型企鹅");
        middlePenguin middlePenguin = new middlePenguin();
        middlePenguin.everyDay();

        System.out.println("大型企鹅");
        BigPenguin bigPenguin = new BigPenguin();
        bigPenguin.everyDay();


    }


}
